home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / demo / pwrtcp11.exe / POWERTCP.BA_ / POWERTCP.bin
Text File  |  1995-02-16  |  9KB  |  199 lines

  1. ' PowerTCP Action Property values
  2. Global Const CONNECT = 0
  3. Global Const LISTEN = 1
  4. Global Const CLOSECOMM = 2
  5. Global Const ABORTCOMM = 3
  6.  
  7. ' PowerTCP Communication States (TCP and TELNET)
  8. Global Const CLOSED = 1
  9. Global Const CONNECTING = 2
  10. Global Const CONNECTED = 4
  11. Global Const LISTENING = 8
  12. Global Const CLOSING = 16
  13.  
  14. ' PowerTCP Flags
  15. Global Const PT_DEBUG = 1
  16. Global Const PT_REUSEADDR = 2
  17. Global Const PT_KEEPALIVE = 4
  18. Global Const PT_SHOW = 8
  19. Global Const PT_TCPNODELAY = 16
  20.  
  21. ' PowerTCP Error Values
  22. Global Const PT_OK = 0          '/* OK...ErrorDesc should be NULL */
  23. Global Const PT_HARDWARE = 1        '/* hardware failure */
  24. Global Const PT_PROTOCOL = 2        '/* protocol software failure */
  25. Global Const PT_BADNAME = 3         '/* name of host cannot be resolved to address */
  26. Global Const PT_CONNREFUSED = 4 '/* connection to host refused */
  27. Global Const PT_NOROUTE = 5         '/* no route to host (check network part of address) */
  28. Global Const PT_NOHOST = 6          '/* remote host is not available (check host part of address) */
  29. Global Const PT_NOMEM = 7           '/* insufficient resources to accept buffer or create channel */
  30. Global Const PT_ADDRINUSE = 8       '/* address/port in use */
  31. Global Const PT_NOTCONNECTED = 9         '/* attempt made to use a session that is not PT_CONNECTED */
  32. Global Const PT_NORESOURCE = 10    '/* insufficient resources on host */
  33. Global Const PT_NOTACCEPTED = 11 '/* applicaton did not properly accept passive connection */
  34. Global Const PT_SOFTWARE = 12        '/* general software error */
  35. Global Const PT_REMOTECLOSE = 13     '/* remote host closed */
  36. Global Const PT_WARNING = 14        ' /* general warning */
  37. Global Const PT_ERROR = 15          '/* general error */
  38.  
  39. ' Add TCP_CNST.BAS to your project for State, Flags, and Error Codes
  40.  
  41. ' PowerTCP TELNET commands
  42. Global Const SE_CMD = 240
  43. Global Const NOP_CMD = 241
  44. Global Const DATA_MARK_CMD = 242
  45. Global Const BREAK_CMD = 243
  46. Global Const INTERRUPT_PROCESS_CMD = 244
  47. Global Const ABORT_OUTPUT_CMD = 245
  48. Global Const ARE_YOU_THERE_CMD = 246
  49. Global Const ERASE_CHARACTER_CMD = 247
  50. Global Const ERASE_LINE_CMD = 248
  51. Global Const GO_AHEAD_CMD = 249
  52. Global Const WILL_CMD = 251
  53. Global Const WONT_CMD = 252
  54. Global Const DO_CMD = 253
  55. Global Const DONT_CMD = 254
  56. Global Const SB_CMD = 250
  57.     
  58. ' Telnet options
  59.  
  60. ' NOTE: These are not all possible options. New options
  61. ' are currently being defined. This list contains many
  62. ' of the common ones you may use.
  63.  
  64. Global Const BINARY_TRANSMISSION = 0
  65. Global Const ECHO = 1
  66. Global Const RECONNECTION = 2
  67. Global Const SUPPRESS_GO_AHEAD = 3
  68. Global Const MESSAGE_SIZE = 4
  69. Global Const STATUS = 5
  70. Global Const TIMING_MARK = 6
  71. Global Const REMOTE_CONTROLLED = 7
  72. Global Const OUTPUT_LINE_WIDTH = 8
  73. Global Const OUTPUT_PAGE_SIZE = 9
  74. Global Const OUTPUT_RETURN_DISPOS = 10
  75. Global Const OUTPUT_HORIZ_TABSTOPS = 11
  76. Global Const OUTPUT_HORIZ_TAB_DISPOS = 12
  77. Global Const OUTPUT_FORM_FEED_DISPOS = 13
  78. Global Const OUTPUT_VERT_TABSTOPS = 14
  79. Global Const OUTPUT_VERT_TAB_DISPOS = 15
  80. Global Const OUTPUT_LINE_FEED_DISPOS = 16
  81. Global Const EXTENDED_ASCII = 17
  82. Global Const LOGOUT = 18
  83. Global Const BYTE_MACRO = 19
  84. Global Const DATA_ENTRY_TERMINAL = 20
  85. Global Const SUPDUP = 21
  86. Global Const SUPDUP_OUTPUT = 22
  87. Global Const SEND_LOCATION = 23
  88. Global Const TERMINAL_TYPE = 24
  89. Global Const END_OF_RECORD = 25
  90. Global Const TACACS_USER_ID = 26
  91. Global Const OUTPUT_MARKING = 27
  92. Global Const TERMINAL_LOC_NUM = 28
  93. Global Const REGIME_3270 = 29
  94. Global Const X3_PAD = 30
  95. Global Const WINDOW_SIZE = 31
  96.  
  97. ' FTP - File Type
  98. Global Const FTP_ASCII = 0
  99. Global Const FTP_IMAGE = 1
  100.  
  101. ' FTP - File Structure
  102. Global Const FTP_FILE = 0
  103. Global Const FTP_RECORD = 1
  104. Global Const FTP_PAGE = 2
  105.  
  106. ' FTP - File Transfer Mode
  107. Global Const FTP_STREAM = 0
  108. Global Const FTP_BLOCK = 1
  109. Global Const FTP_COMPRESSED = 2
  110.  
  111. ' FTP - Possible "LastCommand" values reported
  112. Global Const FTP_CLOSED = 0     ' control connection not established
  113. Global Const FTP_CLEAR = 1      ' no outstanding request or user used Command property
  114. Global Const FTP_USER = 2       ' username sent
  115. Global Const FTP_PASS = 3       ' password sent
  116. Global Const FTP_ACCT = 4       ' acct sent
  117. Global Const FTP_CWD = 5        ' changing working directory
  118. Global Const FTP_CDUP = 6       ' changing working directory up one level
  119. Global Const FTP_SMNT = 7       ' do a structured mount
  120. Global Const FTP_QUIT = 8       ' quit and release all resources or connection closed
  121. Global Const FTP_REIN = 9       ' reinitialize
  122. Global Const FTP_PORT = 10      ' set data port
  123. Global Const FTP_PASV = 11      ' instruct server to go passive
  124. Global Const FTP_TYPE = 12      ' change type file
  125. Global Const FTP_STRU = 13      ' specify file structure
  126. Global Const FTP_MODE = 14      ' specify data transfer mode
  127. Global Const FTP_RETR = 15      ' receiving a file
  128. Global Const FTP_STOR = 16      ' sending a file with create option
  129. Global Const FTP_STOU = 17      ' sending a file with create unique option
  130. Global Const FTP_APPE = 18      ' sending a file with append (create) option
  131. Global Const FTP_ALLO = 19      ' allocate storage on host
  132. Global Const FTP_REST = 20      ' restart file transfer
  133. Global Const FTP_RNFR = 21      ' rename from
  134. Global Const FTP_RNTO = 22      ' rename to
  135. Global Const FTP_ABOR = 23      ' abort control connection
  136. Global Const FTP_DELE = 24      ' deleting a file
  137. Global Const FTP_RMD = 25       ' remove dir
  138. Global Const FTP_MKD = 26       ' make a directory
  139. Global Const FTP_PWD = 27       ' print working directory
  140. Global Const FTP_LIST = 28      ' waiting for a directory listing
  141. Global Const FTP_NLST = 29      ' waiting for a name listing
  142. Global Const FTP_SITE = 30      ' special site instructions
  143. Global Const FTP_SYST = 31      ' get type of operating system
  144. Global Const FTP_STAT = 32      ' get status info
  145. Global Const FTP_HELP = 33      ' help request
  146. Global Const FTP_NOOP = 34      ' noop request
  147.  
  148. ' FTP - Status Codes
  149. Global Const FTP_UNKNOWN = 0    ' spontaneous data or reply from Command
  150. Global Const FTP_SUCCESS = 1    ' operation completed sucessfully
  151. Global Const FTP_ERROR = 2      ' unexpected error
  152. Global Const FTP_FAILURE = 3    ' failure to complete successfully
  153. Global Const FTP_WORKING = 4    ' informative...wait for next
  154.  
  155. ' VT-220 - General Constants
  156. Global Const TTY = 0
  157. Global Const VT52 = 1
  158. Global Const VT100 = 2
  159. Global Const VT220_7 = 3
  160. Global Const VT220_8 = 4
  161.  
  162.  
  163. ' VT-220 - Host has sent a Command sequence
  164. Global Const IGNORECOMMAND = 0  ' set by user to disable auto response by program
  165. Global Const AUTOPRINTOFF = 1  ' do not print incoming lines
  166. Global Const AUTOPRINTON = 2  ' print incoming lines
  167. Global Const PRINTERCONTROLLEROFF = 3  ' do not send lines to printer
  168. Global Const PRINTERCONTROLLERON = 4  ' send lines to printer, not screen
  169. Global Const PRINTCURSORLINE = 5  '  print text for CursorRow
  170. Global Const PRINTSCREEN = 6    ' print text for the screen
  171. Global Const OFFLINE = 7   '  echo characters to screen (local)
  172. Global Const ONLINE = 8  '  send characters to host
  173. Global Const PRINTFFON = 9   ' print form feed on
  174. Global Const PRINTFFOFF = 10    ' print form feed off
  175. Global Const PRINTEXTENTFULL = 11   '  print extent is full screen
  176. Global Const PRINTEXTENTSCROLLING = 12 ' print extent is scrolling region
  177. Global Const NEW_VT52 = 13  ' * new VT52 commanded
  178. Global Const NEW_VT100 = 14  ' * new terminal type commanded
  179. Global Const NEW_VT220_7 = 15    ' * new VT-220 with 7 bit controls
  180. Global Const NEW_VT220_8 = 16    ' * new VT-220 with 8 bit controls
  181. Global Const RESET_TERMINAL = 17      ' * reset the terminal
  182. Global Const SMOOTHSCROLL = 18   ' * change to smooth scroll
  183. Global Const JUMPSCROLL = 19      ' * change to jump scroll
  184. Global Const NORMALCURSORKEYS = 20  ' * use normal cursor keys
  185. Global Const APPLICATIONCURSORKEYS = 21' * use application cursor keys
  186. Global Const WIDEMODEON = 22     ' * go to 132 columns
  187. Global Const WIDEMODEOFF = 23     ' * go to 80 columns
  188. Global Const INVERSEMODEON = 24  ' * invert foreground and background
  189. Global Const INVERSEMODEOFF = 25 ' * invert foreground and background
  190. Global Const CURSORENABLED = 26  ' * make it visible
  191. Global Const CURSORDISABLED = 27 ' * hide it
  192. Global Const AUTOWRAPON = 28     ' * turn autowrap on
  193. Global Const AUTOWRAPOFF = 29   ' * turn autowrap off
  194. Global Const AUTOREPEATON = 30   ' * turn autorepeat on
  195. Global Const AUTOREPEATOFF = 31  ' * turn autorepeat off
  196. Global Const NEWLINECRLF = 32   ' * return key should generate CR/LF pair
  197. Global Const NEWLINECR = 33    ' * return key should generate CR only
  198.  
  199.